package com.bcxj.apipassenger.controller;

import com.bcxj.apipassenger.service.DirectionService;
import com.bcxj.internalcommon.dto.*;
import com.bcxj.internalcommon.response.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: DirectionController
 * Package: com.bcxj.apipassenger.controller
 * Description:
 *
 * @Author BCXJ
 * @Create 2025/3/1 11:49
 * @Version 1.0
 * @Since 1.0
 */
@RestController
@RequestMapping("direction")
public class DirectionController {

    @Autowired
    private DirectionService directionService;

    /**
     * 步行
     * @param directionWalkDTO
     * @return
     */
    @GetMapping("walking")
    public ResponseResult walk(DirectionWalkDTO directionWalkDTO) {
        return directionService.walk(directionWalkDTO);
    }


    /**
     * 驾车
     * @param directionDriveDTO
     * @return
     */
    @GetMapping("drivering")
    public ResponseResult drivering(DirectionDriveDTO directionDriveDTO) {
        return directionService.drive(directionDriveDTO);
    }

    /**
     * 公共交通
     * @param directionTransitDTO
     * @return
     */
    @GetMapping("transit")
    public ResponseResult transit(DirectionTransitDTO directionTransitDTO) {
        return directionService.transit(directionTransitDTO);
    }

    /**
     * 骑行
     * @param directionBicycleDTO
     * @return
     */
    @GetMapping("bicycle")
    public ResponseResult bicycle(DirectionBicycleDTO directionBicycleDTO) {
        return directionService.bicycle(directionBicycleDTO);
    }


    /**
     * 推荐服务接口
     * @param directionRecommendDTO
     * @return
     */
    @GetMapping("recommend")
    public ResponseResult recommend(DirectionRecommendDTO directionRecommendDTO) {

        return directionService.recommend(directionRecommendDTO);
    }


}
